package com.commons.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author mis_wu
 * @date 2022/1/8 13:48
 * 队列配置
 */
@Configuration
public class RabbitQueueConfig {
    @Bean
    public Queue queue(){
        return new Queue("queue-producer");
    }
}
